import { Rule, RuleType } from "@midwayjs/validate";

export class AddFavoriteDTO {
    @Rule(RuleType.number().required())
    relatedId: number;
    @Rule(RuleType.string().required())
    relatedName: string;
    @Rule(RuleType.allow('product', 'provider').required())
    relatedType: 'product' | 'provider';
}